package com.gem.day07;

//静态导入
import static com.gem.day07.EmployeeFactory.*;

import com.gem.day06.extend1.Employee;
import com.gem.day06.extend1.HourlyEmployee;

public class EmployeeTest {
	public static void main(String[] args) {
		//使用静态常量提高代码可读性
		//Employee employee = EmployeeFactory.getInstance(EmployeeFactory.HOURLY_EMP);

		//使用静态导入简化代码
		Employee employee = getInstance(HOURLY_EMP);
		System.out.println(employee instanceof HourlyEmployee);
	}
}
